package com.xujicheng.algorithm.sort;

import java.util.Collection;

public class Context<T extends Comparable<T>> {
    private Sort<T> sort;

    public Context(Sort sort){
        this.sort = sort;
    }

    public Collection<T> sort(Collection<T> t){
        return sort(t, Sort.SortType.ASC);
    }

    public Collection<T> sort(Collection<T> t, Sort.SortType sortType){
        return sort.sort(t,sortType);
    }
}
